织梦cms

推荐列表 站点导航

当前位置:首页 > 建站教程 > 织梦cms >

如何修改织梦5.7版上一页下一页文字和长度

来源:网络整理  作者:  发布时间:2020-12-14 22:28
今天来说下如何修改dedecms分页的下一页和上一页的文字和文字长度! 1.首先到include/arc.archives.class.php 加入红色代码,...

 

加入红色代码,是用来设置默认获取字数的。当前设置为14个中文字符
 

3   $this->PreNext['next'] = "下一篇:<a href='$mlink' title='{$nextRow['title']}'>{$nextRow['title2']}</a> ";  

2.再往下找,插入红色部分!即是用截取后的长度赋予$preRow['title2'],那么原始没截取的就是

如果需要修改文字那我就不说了,直接修改文字即可实现!

4.修改下一篇 如下:


//获取上一篇,下一篇链接 function GetPreNext($gtype='',$titlelen=28)  
 

 

3.接下来就很简单了。做鼠标指上后就能显示完整文章标题。(对SEO很有利)

1.首先到include/arc.archives.class.php

$preRow['title'] $preRow['namerule'],$preRow['typedir'],$preRow['money'],$preRow['filename'],$preRow['moresite'],$preRow['siteurl'],$preRow['sitepath']); $preRow['title2']=cn_substr($preRow['title'],$titlelen); $this->PreNext['pre'] = "上一篇:<a href='$mlink'  

1   $nextRow['namerule'],$nextRow['typedir'],$nextRow['money'],$nextRow['filename'],$nextRow['moresite'],$nextRow['siteurl'],$nextRow['sitepath']);  
 

2   $nextRow['title2']=cn_substr($nextRow['title'],$titlelen);  
$preRow['namerule'],$preRow['typedir'],$preRow['money'],$preRow['filename'],$preRow['moresite'],$preRow['siteurl'],$preRow['sitepath']); $preRow['title2']=cn_substr($preRow['title'],$titlelen); $this->PreNext['pre'] = "上一篇:<a href='$mlink' title='{$preRow['title']}'> {$preRow['title2']}</a> ";  

 

相关热词: 织梦

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://v30.fanwenzhu.com/jz/dedecms/3928.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

如何修改织梦5.7版上一页下一页文字和长度

2020-12-14 编辑:

 

加入红色代码,是用来设置默认获取字数的。当前设置为14个中文字符
 

3   $this->PreNext['next'] = "下一篇:<a href='$mlink' title='{$nextRow['title']}'>{$nextRow['title2']}</a> ";  

2.再往下找,插入红色部分!即是用截取后的长度赋予$preRow['title2'],那么原始没截取的就是

如果需要修改文字那我就不说了,直接修改文字即可实现!

4.修改下一篇 如下:


//获取上一篇,下一篇链接 function GetPreNext($gtype='',$titlelen=28)  
 

 

3.接下来就很简单了。做鼠标指上后就能显示完整文章标题。(对SEO很有利)

1.首先到include/arc.archives.class.php

$preRow['title'] $preRow['namerule'],$preRow['typedir'],$preRow['money'],$preRow['filename'],$preRow['moresite'],$preRow['siteurl'],$preRow['sitepath']); $preRow['title2']=cn_substr($preRow['title'],$titlelen); $this->PreNext['pre'] = "上一篇:<a href='$mlink'  

1   $nextRow['namerule'],$nextRow['typedir'],$nextRow['money'],$nextRow['filename'],$nextRow['moresite'],$nextRow['siteurl'],$nextRow['sitepath']);  
 

2   $nextRow['title2']=cn_substr($nextRow['title'],$titlelen);  
$preRow['namerule'],$preRow['typedir'],$preRow['money'],$preRow['filename'],$preRow['moresite'],$preRow['siteurl'],$preRow['sitepath']); $preRow['title2']=cn_substr($preRow['title'],$titlelen); $this->PreNext['pre'] = "上一篇:<a href='$mlink' title='{$preRow['title']}'> {$preRow['title2']}</a> ";  

 

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://v30.fanwenzhu.com/jz/dedecms/3928.shtml

相关文章

风云图片

推荐阅读

返回织梦cms频道首页